﻿using System;
using System.Collections.Generic;
using System.Text;

namespace ServiceCore.Tool.JD_Pay
{
    /// <summary>
    ///  查询退款 请求
    /// </summary>
    public class queryrefund_Params : JD_Api_Base_Params
    {
        public queryrefund_Params()
        {
            this.Request_URL = CodeContent.Api_Url.queryrefund;
        }
        /// <summary>
        /// 门店号 否
        /// </summary>
        public string shopId { get; set; }
        /// <summary>
        /// 退款订单号
        /// </summary>
        public string outRefundNo { get; set; }
        /// <summary>
        /// 业务数据json:{key:value}
        /// </summary>
        public string businessData { get; set; }
        /// <summary>
        /// 备用扩展字段: json:{key:value}
        /// </summary>
        public string extMap { get; set; }
    }
    /// <summary>
    //  查询退款 结果
    /// </summary>
    public class queryrefund_Result
    {
        /// <summary>
        /// 商户号
        /// </summary>
        public string merchantNo { get; set; }
        /// <summary>
        /// 业务类型
        /// </summary>
        public string businessCode { get; set; }
        /// <summary>
        /// 商户退款订单号
        /// </summary>
        public string outRefundNo { get; set; }
        /// <summary>
        /// 退款订单号
        /// </summary>
        public string tradeRefundNo { get; set; }
        /// <summary>
        /// 商户订单号
        /// </summary>
        public string outTradeNo { get; set; }
        /// <summary>
        /// 平台订单号
        /// </summary>
        public string tradeNo { get; set; }
        /// <summary>
        /// 交易总金额
        /// </summary>
        public long amount { get; set; }
        /// <summary>
        /// 用户支付金额
        /// </summary>
        public long piAmount { get; set; }
        /// <summary>
        /// 商户优惠金额
        /// </summary>
        public long merchantCouponAmount { get; set; }
        /// <summary>
        /// 平台营销金额
        /// </summary>
        public long couponAmount { get; set; }
        /// <summary>
        /// 币种
        /// </summary>
        public string currency { get; set; }
        /// <summary>
        /// 订单完成时间
        /// </summary>
        public string payFinishTime { get; set; }
        /// <summary>
        /// 支付方式
        /// </summary>
        public string piType { get; set; }
        /// <summary>
        /// 退款状态PROCESSING：退款处理中  CLOSE：退款失败   FINISH：退款成功 
        /// </summary>
        public string payStatus { get; set; }

        public string version { get; set; }

        public string resultCode { get; set; }

        public string errCode { get; set; }
        public string errCodeDes { get; set; }

        public string systemId { get; set; }
    }
}